package com_3;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;

public class ServerTCP {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(10086);
        BufferedReader br = new BufferedReader(new InputStreamReader(ss.accept().getInputStream()));
        String line;
        while((line=br.readLine())!=null){
            System.out.println(line);
        }

    }

}
